package com.lzh.lojcodesandbox.security;

import java.security.Permission;

/**
 * 安全管理器（禁止所有权限）
 * @Author luzhiheng
 * @Date 2023/8/31 11:19
 */
public class DenySecurityManager extends SecurityManager {
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限异常：" + perm.getActions());
    }
}
